/*  
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dynamixel;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.Inet4Address;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.Arrays;

/**
 *
 * @author root
 */
public class Tester {
   
    
    public void shit (){
        
    }
    public static void main(String[] args) throws UnknownHostException, SocketException, IOException {
        final int UDP_PORT = 21214 ;
    final String  ADDRESS = "10.11.14.247";
    DatagramPacket out  ;
    DatagramPacket in   ;
    DatagramSocket sock = new DatagramSocket(UDP_PORT);
    
        
        String engText = "Eat your pineapples,chew your grouse,"
                + "your last day is coming you bourgeois lose ";
    
        String text =  "Ешь ананасы, рябчиков жуй,"
                + "день твой последний приходит буржуй";
        out = new DatagramPacket(text.getBytes(), 0,text.length(),
                Inet4Address.getByName(ADDRESS), UDP_PORT);
        
        sock.send(out);
        System.out.println("Sended!");
    }
}
